package com.region.plugin.proxy.javassist;

import com.region.plugin.ProceedPoint;

import java.lang.reflect.Method;

/**
 * @author liujieyu
 * @date 2024/11/6 11:07
 * @desciption
 */
public class JavassistProceedPoint extends ProceedPoint {

    private Method proceed;

    public JavassistProceedPoint(Object proxy, Method proceed, Object[] args) {
        super(proxy, args);
        this.proceed = proceed;
    }

    @Override
    public Object proceed() throws Throwable {
        return proceed.invoke(proxy, args);
    }
}
